package square;

/**
 * Author: Daniel Michalski
 * Date: 22.09.13
 */

public class Square {
    private double side;

    public Square() {
        side = 0;
    }

    public Square(double side) {
        this.side = side;
    }

    public double getSide() {
        return side;
    }

    public void setSide(double side) {
        if (side >= 0)
            this.side = side;
        else
            this.side = 0;
    }

    public double getSquare() {
        return side * side;
    }
}
